/*
 * BOWScene.h
 *
 *  Created on: Jan 8, 2014
 *      Author: thanhkm
 */

#ifndef BOWSCENE_H_
#define BOWSCENE_H_

#include <opencv2/opencv.hpp>
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/features2d.hpp"
#include "opencv2/nonfree/nonfree.hpp"


class BOWScene {
public:
	BOWScene();
	virtual ~BOWScene();

	void cluster(std::vector<cv::Mat> vecDescriptors, int dictionarySize);

	void computeHistogram(std::vector<cv::Mat> images,
							 cv::Mat &histograms,
							 cv::Mat dictionary);

	void setDictionary(cv::Mat dictionary);
	cv::Mat getDictionary();
private:
	cv::Mat dictionary;
};

#endif /* BOWSCENE_H_ */
